﻿using System;
using System.Collections.Generic;
//using System.Windows.Forms;
using MarkovsImpl;

namespace WebTempGen
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool ignoreLoadTime = true;
            WebSiteRetriever wsr = new WebSiteRetriever();

            List<WebSiteRetriever.WSRPage> webpages = wsr.GetWebsites("artificial intelligence", 1, ignoreLoadTime);

            foreach (WebSiteRetriever.WSRPage page in webpages)
            {
                ColorSchemeExtractor extractor = new ColorSchemeExtractor();
                ColorScheme scheme = new ColorScheme();
                MarkovsWebImpl markovs = new MarkovsWebImpl();

                scheme = extractor.Extract(page.Content[UserAgent.IE].ToString());
                markovs.setWebElement(scheme);
                markovs.DetermineProbabilities();

            }
        }
    }
}
